package com.kb.erp.mapper.sqlServer.flow;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.kb.erp.entity.flow.FormItem;
import org.apache.ibatis.annotations.Select;

import java.util.List;

public interface FormItemMapper extends BaseMapper<FormItem> {

    @Select("SELECT * FROM [dbo].[FormItem]where itemName = #{name} and FormDetailId =#{id}")
    public List<FormItem> queryItem(String name,String id);

    @Select("SELECT * FROM [dbo].[FormItem]where itemName = #{name}")
    public List<FormItem> queryItemById(String id);
}